﻿using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace PenguinForce.Levels
{
    public class Tile
    {

        public Tile(List<Texture2D> textureList)
        {
            m_textureList = textureList;

        }

        public void Update(GameTime gameTime)
        {


        }

        public void Draw(GameTime gameTime, SpriteBatch sprite, float x, float y)
        {
            sprite.Draw(m_textureList[(int)m_tileType], new Vector2(x, y), Color.White);
        }

        public void Draw(GameTime gameTime, SpriteBatch sprite, float alpha)
        {
            sprite.Draw(m_textureList[(int)m_tileType], m_location, new Color(255, 255, 255, alpha));

        }

        public float GetFriction()
        {
            return m_tileFriction[(int)m_tileType];

        }

        public float[] m_tileFriction = { 0.6f, 1.0f, 0.3f, 1.00f, 1.0f, 0.9f };

        public enum TileTypes
        {
            Ice,
            Rock,
            Sand,
            SlipperyIce,
            Hole,
            ThinIce
        }

        public TileTypes m_tileType;

        public List<Texture2D> m_textureList;
        public Vector2 m_location;

    }
}